package chapter12

/**
  * @Copyright: Shanghai Definesys Company.All rights reserved.
  * @Description:
  * @author: chuhaitao
  * @since: 2019/1/24 22:17
  * @history:
  *          1.2019/1/24 created by chuhaitao
  */
object AbstracltController {


  def main(args: Array[String]): Unit = {

    def myThread(f1:  => Unit) = {

      new Thread {
        override def run(): Unit = {
          f1
        }
      }.start()
    }

    myThread {
      println("")
      print("1")
    }


  }
}
